from django.db import models

class webresource(models.Model):
    webname = models.CharField("网站名称",max_length=100)
    domainname = models.CharField("域名",max_length=100)
    urladdress = models.CharField("URL",max_length=100)
    webVPN = models.IntegerField("webVPN",choices=((0,"启用"),(-1,"不启用")), default=-1)

    def __str__(self):
        return self.webname

    class Meta:
        verbose_name = "网站资源信息"
        verbose_name_plural = "网站资源信息"